/*
 * @Author: Lu junwen
 * @Date: 2022-02-21 17:29:29
 * @LastEditors: Lu junwen
 * @LastEditTime: 2022-03-01 16:47:07
 * @FilePath: \ego\src\server\config\config.js
 */
/*
七牛云配置
*/
const qiniu = require('qiniu')

// 创建上传凭证
const accessKey = 'QqMmrTCI_dPlVNM0HWFDfuf7PbC0WVa0VlMzOej9'
const secretKey = '9YuxNu_91por3Unupi7KrVzm6R_AmMuPOY8YXJcU'
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey)
const options = {
  scope: 'yuki-space',
  expires: 7200
}
const putPolicy = new qiniu.rs.PutPolicy(options)
const uploadToken = putPolicy.uploadToken(mac)

module.exports = {
  uploadToken,
  // http config
  domain: '127.0.0.1', // 修改成你的域名或ip
  port: '8088' // 修改端口
}
